﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.NewWorld.DAL.IRepository;
using ZhouYu.NewWorld.Model;
using ZhouYu.NewWorld.ViewModel;

namespace ZhouYu.NewWorld.BLL.IService
{
    public interface IGoodsService:IBaseRepository<Goods>, IDenpendecy
    {

        /// <summary>
        /// 多表连查
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        ResponseResult GetGoodsInfo(int page, int limit);

        /// <summary>
        /// 多表添加
        /// </summary>
        /// <param name="goodsCustom"></param>
        /// <returns></returns>
        ResponseResult AddGoods(GoodsCustom goodsCustom);

        /// <summary>
        /// 多表编辑
        /// </summary>
        /// <param name="goodsCustom"></param>
        /// <returns></returns>
        ResponseResult UpdateGoods(GoodsCustom goodsCustom);

        /// <summary>
        /// 多表删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseResult DeleteGoods(int id);

        /// <summary>
        /// 获取品牌对象
        /// </summary>
        /// <returns></returns>
        ResponseResult GetBrand();

        /// <summary>
        /// 获取供应商对象
        /// </summary>
        /// <returns></returns>
        ResponseResult GetSupplier();
    }
}
